#include<bits/stdc++.h>
using namespace std;
const int N=1e5+5;
int a[N];
int b[N];
int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);cout.tie(0);
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>a[i];
        b[a[i]]++;
        }
    int sum=0;
    for(int i=1;i<=1e5;i++){
        if(b[i]){
            sum=max(0,sum-b[i]);
            sum+=b[i];
        }
    }
    cout<<sum;
    return 0;
}